﻿<table class="display dataTable">
    <thead>
        <tr role="row">
            <th>Hạng phòng</th>
            <th>Loại phòng</th>
            <th>Đơn giá</th>
            <th>Quản lý</th>
        </tr>
    </thead>
    <tbody role="alert" aria-live="polite" aria-relevant="all">
        @{foreach (var GKS in ViewBag.GKS)
          {
            <tr class="odd">
                <td>
                    <div class="nonDisplay">
                        <input type="text" class="maHangG@{@GKS.maHangPhong@GKS.maLoaiPhong}" value="@GKS.maHangPhong"/>
                    </div>
                    @foreach (var P_HP in ViewBag.HKS)
                    {
                        if (P_HP.maHangPhong == GKS.maHangPhong)
                        {
                        @P_HP.tenHangPhong
                        }

                    }

                </td>
                <td>
                    <div class="nonDisplay">
                        <input type="text" class="maLoaiG@{@GKS.maHangPhong@GKS.maLoaiPhong}" value="@GKS.maLoaiPhong"/>
                    </div>
                    @foreach (var L_HP in ViewBag.LKS)
                    {
                        if (L_HP.maLoaiPhong == GKS.maLoaiPhong)
                        {
                        @L_HP.tenLoaiPhong
                        }

                    }
                </td>
                <td>
                    <div class="nonDisplay" id="giaG@{@GKS.maHangPhong@GKS.maLoaiPhong}">
                        <input type="text" class="gia G@{@GKS.maHangPhong@GKS.maLoaiPhong}" value="@GKS.donGia"/>
                    </div>
                    <div id="giaGG@{@GKS.maHangPhong@GKS.maLoaiPhong}">@GKS.donGia</div>
                </td>
                <td>
                    <div>
                        <img class="editG" id="@GKS.maHangPhong@GKS.maLoaiPhong" src="../Images/icon_edit.png">
                        <img class="deleteG" id="@GKS.maHangPhong@GKS.maLoaiPhong" src="../Images/icon_delete.png">
                        <img class="save_editG nonDisplay" id="@GKS.maHangPhong@GKS.maLoaiPhong" src="../Images/checkmark2.png">
                        <img class="cancel_editG nonDisplay" id="@GKS.maHangPhong@GKS.maLoaiPhong" src="../Images/cross.png">
                    </div>
                </td>
            </tr>
          }
        }
    </tbody>
</table>
